These are some codes illustrating  methods discussed in 
Kostov, P. (2012) Empirical likelihood estimation of the spatial quantile regression, Journal of Geographical Systems, http://dx.doi.org/10.1007/s10109-012-0162-3

All codes are In R.

This archive contains 3 files: 

EL.codes.main.r
BETEL-example.r
IVRQ.r


IVRQ.r just contains some routines for estimatins IVQR used for generating starting values.  The McSpatial package can be used instead for this purpose (or gmm generated starting values). SEE the comments in the other files for details.

The main file is EL.codes.main.r
It is commented to provide explanations. IT (as well as the file BETEL-example.r) contains a number of auxiliary routines for generationg artificial data taht are not necessary if a real data applicatiojn is pursued).

The  file BETEL-example.r provides an illustratiuon of how to implement Bayesian exponentially tilted empirical likelihood estimation.
 It is a manual implementation of the basic sampler and since it needs manual adjustment to ensure reasonable acceptance rates it has not been included in the paper simulations. One could probably use a specialised sampling software/routine that does this automatically.